# -*- coding:utf-8 -*-
from application import app, db
from flask import Blueprint, jsonify, make_response
from common.libs.Helper import ops_render
import json

route_goods = Blueprint('goods_page', __name__)


@route_goods.route("/goods", methods=["GET", "POST"])
def admin():
    resp = {
        "code": 200,
        "msg": "ok",
        "count": 100,
        "data": [{
            "title": "1索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "2索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "3索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_DELIVER",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "4索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_REFUND",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "5索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "6索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_REFUND",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "7索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "8索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "9索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_REFUND",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "10索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "11索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "12索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "13索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "14索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "15索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "16索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "17索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "18索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "19索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "20索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "21索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }, {
            "title": "22索尼/Sony PlayStation 4 PS4游戏机 Pro主机 家用电视游戏机国行",
            "thumb": "http://img.alicdn.com/imgextra/i4/2318796651/TB1kNHaw5MnBKNjSZFoXXbOSFXa_!!0-item_pic.jpg_60x60q90.jpg",
            "price": "2999",
            "params": [{
                "name": "颜色分类",
                "val": "PS4 Pro 黑色"
            }, {
                "name": "套餐",
                "val": "单机标配"
            }, {
                "name": "版本类型",
                "val": "中国大陆"
            }],
            "status": "WAIT_PAY",
            "buycount": "1",
            "time": "2018/09/12 12:23:11"
        }]
    }
    header = {'Content-Type': 'application/x-javascript'}

    response = json.dumps(resp)
    return response,header
